package com.wisely.springbootjpa.service;

import com.wisely.springbootjpa.domain.User;

import java.util.List;

public interface IUserService {
    public List<User> findAll();

    public void saveUser(User book);

    public User findOne(long id);

    public void delete(long id);

    public List<User> findByName(String name);

    public List<User> findByNameLike(String name);

    List<User> find10ByName(String name);

    int updateUsernameById(String name, int id);

    public List<User> findFromBeijing();

    List<User> findByNameAndDesc(String name);

    List<User> findByNamePage(String name);
}
